package com.xiashitech.apiservice.util;

import com.xiashitech.interfaces.apiservice.dto.AuthFactRequest;

public class AuthFactSignParam {
    public static String generateSignParam(AuthFactRequest authFactRequest) {
        StringBuffer signParam = new StringBuffer();
        return signParam.append(authFactRequest.getSystemId())
                .append(authFactRequest.getAppCode())
                .append(authFactRequest.getSign())
                .append(authFactRequest.getUserId())
                .append(authFactRequest.getDb().getInstance())
                .append(authFactRequest.getDb().getDatabase())
                .append(authFactRequest.getDb().getSchema())
                .append(authFactRequest.getDb().getSql()).toString();
    }
}
